"""
@File    : closure_decorator.py
@Author  : sharan
@Time    : 2021/3/7 17:01
@Desc    :
"""

def logger(func):
    def inner(*args, **kwargs):
        print("arguments were : %s, %s" % (args, kwargs))
        return func(*args, **kwargs)
    return inner

@logger
def logtest(x, y=3):
    return x + y
